package com.xzbd.springbootmybatiesdm.config;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import lombok.Data;

@Data
@Configuration
@PropertySource( value = "classpath:config/spring/my-config.yml",factory = YamlPropertyLoadFactory.class)
@ConfigurationProperties(prefix = "xzbd.user")
public class TestConfig implements Serializable{
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String name;
    private Integer age;
    private Work work;
    private List<String> doingThing;
    private Map<String,String> likeFood;

    
    

}